//package com.example.hxpc.guidancemanagement.adapter;
//
//import android.support.v4.view.PagerAdapter;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ImageView;
//
//
///**
// * Created by tao on 2017/11/30.
// * ViewPager适配器（轮播图）
// */
//
//public class BannerAdapter extends PagerAdapter{
//
//    private List mlist;
//
//    public BannerAdapter(List mList){
//        this.mList = mList;
//    }
//    @Override
//    public int getCount() {
//        //取超大的数，实现无线循环效果
//        return mList.size();
//    }
//
//    @Override
//    public boolean isViewFromObject(View view, Object object) {
//        return view == object;
//    }
//
//    @Override
//    public Object instantiateItem(ViewGroup container, int position) {
//        container.addView(mList.get(position%mList.size()));
//        return mList.get(position%mList.size());
//    }
//
//    @Override
//    public void destroyItem(ViewGroup container, int position, Object object) {
//        container.removeView(mList.get(position));
//    }
//}
